const state = {
    currentcolor: '#8db596',
    switchstate: false
}
const actions = {
    selectcolorActions(obj, color) {
        obj.commit('selectcolorMutations', color);
    },
    changestateActions({ commit }) {
        commit('changestateMutations')
    }
}

const mutations = {
    selectcolorMutations(state, color) {
        state.currentcolor = color
        console.log(color);
    },
    changestateMutations(state) {
        state.switchstate = !state.switchstate
    }

}

const getters = {}


export default {
    state,
    actions,
    mutations,
    getters
}